//
//  SingleDetail.m
//  悠狸
//
//  Created by dllo on 15/9/1.
//  Copyright (c) 2015年 Dung. All rights reserved.
//

#import "SingleDetail.h"
#import "SingleModel.h"
@implementation SingleDetail



- (void)dealloc
{

    [super dealloc];
}
 -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
    
        
    }
    return self;
}
- (void)sendVallue:(SingleModel *)model
{
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    [self.contentView addSubview:webView];
    webView.scalesPageToFit = YES;
    NSURL *url = [NSURL URLWithString:model.url];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    [webView release];
    
}

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
    [self.delegate sendValue: webView.scrollView.contentSize.height];
    
}
@end
